package com.g1.gzbooksingle.controller;


import com.g1.gzbooksingle.model.DgCommentInfo;
import com.g1.gzbooksingle.model.DgLoopImage;
import com.g1.gzbooksingle.service.IDgLoopImageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 轮播图表 前端控制器
 * </p>
 *
 * @author admin
 * @since 2021-10-12
 */
@Slf4j
@Api(tags = "轮播图接口")
@RestController
@RequestMapping("/gzbooksingle/dgLoopImage")
public class DgLoopImageController {

    @Autowired
    private IDgLoopImageService iDgLoopImageService;

    /**
     * 查询全部轮播图信息
     * @return
     */
    @GetMapping
    @ApiOperation("查询全部轮播图信息")
    public List<DgLoopImage> getList(){
        List<DgLoopImage> list = iDgLoopImageService.list();
        return list;
    }


}
